<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('质检单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quality_no" class="form-control" name="row[quality_no]" type="text" value="" placeholder="留空自动生成">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产计划')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-plan_id" data-rule="required" class="form-control selectpicker" name="row[plan_id]" data-live-search="true">
                <option value="">{:__('请选择生产计划')}</option>
                {foreach $planList as $plan}
                <option value="{$plan.id}">{$plan.plan_name} - {$plan.order.order_no}</option>
                {/foreach}
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-product_model_id" data-rule="required" class="form-control selectpicker" name="row[product_model_id]" data-live-search="true">
                <option value="">{:__('请选择产品型号')}</option>
                {foreach $modelList as $model}
                <option value="{$model.id}">{$model.product.name} - {$model.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查工序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-process_id" data-rule="required" class="form-control selectpicker" name="row[process_id]" data-live-search="true">
                <option value="">{:__('请选择工序')}</option>
                {foreach $processList as $process}
                <option value="{$process.id}">{$process.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_quantity" data-rule="required" class="form-control" name="row[check_quantity]" type="number" value="" min="1" step="1">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查标准')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-check_standard" class="form-control" name="row[check_standard]" rows="3" placeholder="请描述检查标准"></textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remark]" rows="3"></textarea>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
